interface LengthWise {
  length:number
}

function loggingIdentitys<T extends LengthWise> (arg: T):T{
  console.log(arg.length);
  return arg
}

loggingIdentitys(['hello','world'])